package DO1;

/**
 * Created by Cai Ye on 2016/4/8.
 */
public class Student {
    private int num;
    private String name;
    private int java;
    private int hb;
    private int sjjg;
    private int mmx;
    private int sum;
    private int avg;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getJava() {
        return java;
    }

    public void setJava(int java) {
        this.java = java;
    }

    public int getHb() {
        return hb;
    }

    public void setHb(int hb) {
        this.hb = hb;
    }

    public int getSjjg() {
        return sjjg;
    }

    public void setSjjg(int sjjg) {
        this.sjjg = sjjg;
    }

    public int getMmx() {
        return mmx;
    }

    public void setMmx(int mmx) {
        this.mmx = mmx;
    }

    public int getSum() {
        return sum;
    }

    public void setSum() {
        this.sum = this.java + this.sjjg + this.hb + this.mmx;
    }

    public String toString() {
        String str = "\t" + this.num + "\t" + this.name + "\t" + this.java + "\t\t" + this.hb + "\t\t" + this.sjjg + "\t\t" + this.mmx + "    \t" + this.sum;
        return str;
    }
}